package com.example.yin.service.impl;

import com.example.yin.dao.ArticlelikeMapper;
import com.example.yin.domain.Articlelike;
import com.example.yin.service.ArticlelikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticlelikeServiceImpl implements ArticlelikeService {

    @Autowired
    private ArticlelikeMapper articlelikeMapper;

    @Override
    public int insert(Articlelike articlelike) {
        return articlelikeMapper.insert(articlelike);
    }

    @Override
    public Articlelike searchbyKey(Integer userId,Integer articleId) {
        return articlelikeMapper.selectByPrimaryKey(userId,articleId);
    }
}
